package com.quanyan.order.enums;

/**
 * 订单状态
 *
 * @author songzj
 * @date 16/7/9-19:01
 */
public enum OrderStatusEnum {

    ORDER_STATE_UNCHECKED(Byte.valueOf("0"), "ORDER_STATE_UNCHECKED", "未确认"),
    ORDER_STATE_CHECKED(Byte.valueOf("1"), "ORDER_STATE_CHECKED", "已确认"),
    ORDER_STATE_CANCELED(Byte.valueOf("2"), "ORDER_STATE_CANCELED", "已取消"),
//    ORDER_STATE_NO_AVAIL(Byte.valueOf("3"), "ORDER_STATE_NO_AVAIL", "无效"),
//    ORDER_STATE_REFUND(Byte.valueOf("4"), "ORDER_STATE_REFUND", "已退款"),
    ORDER_STAE_CLOSED(Byte.valueOf("3"), "ORDER_STAE_CLOSED", "已关闭"),;

    private Byte id;
    private String code;
    private String desc;

    OrderStatusEnum(Byte id, String code, String desc) {
        this.id = id;
        this.code = code;
        this.desc = desc;
    }

    public Byte getId() {
        return id;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
